﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_SysModel.Add" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>添加模型</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    $(function () {
        $("#cbxCreateStatic").click(function () {
            if (!$(this).attr("checked")) {
                $('#cbxIsZiphtml').removeAttr("checked");
            }
        });
        $("#cbxIsZiphtml").click(function () {
            if (!$('#cbxCreateStatic').attr("checked")) {
                alert("请先启用生成！");
                return false;
            }
        });
    });
</script>
</head>
<body>

<div class="frmstatic" style="display:block;">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="nav_menu">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align="left">
                <table>
                    <tr>
                        <td><img src="../images/main_home.gif" width="16" height="16" /></td>
                        <td><label>扩展&nbsp;&gt;&nbsp;模型管理&nbsp;&gt;&nbsp;添加模型</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <table>
                    <tr>
                        <td><img src="../images/arrow_left.png" width="16" height="16" /></td>
                        <td><label><a href="./Admin.aspx" class="sub_menu_selected">模型列表</a></label> | </td>
                        <td><label><a href="./Add.aspx" class="sub_menu">添加模型</a></label> | </td>
                        <td><label><a href="javascript:window.history.back();" class="sub_menu">返回</a></label></td>
                    </tr>
                </table>
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>


<div class="frmstatic" style="display:block; margin-top:10px;">
<form id="form1" runat="server">
<span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
<div class="controls">


          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">

            <tr>
              <td width="145" align="right" nowrap bgcolor="#F4FBFF">模型编号:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtSysModelId" runat="server" CssClass="input" Width="100px"></asp:TextBox>
                  (数字) 
               </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">模型名称:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtName" runat="server" CssClass="input" Width="156px"></asp:TextBox>
                </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">程序集名称:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtAssName" runat="server" CssClass="input" Width="156px"></asp:TextBox>
                </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">程序集类名:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtAssClass" runat="server" CssClass="input" Width="156px"></asp:TextBox>
                </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">模型首页:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtWebIndex" runat="server" CssClass="input" Width="256px"></asp:TextBox>
                </td>
            </tr>
            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">内容预览页路径:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtDynArticlePath" runat="server" CssClass="input" Width="256px"></asp:TextBox>
                </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">绑定网站栏目:</td>
              <td bgcolor="#F4FBFF">
                  <asp:DropDownList ID="ddlChannelNoList" runat="server"></asp:DropDownList>
                </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">生成静态:</td>
              <td bgcolor="#F4FBFF">
                  <asp:CheckBox ID="cbxCreateStatic" runat="server" Text="启用生成" />
                  <asp:CheckBox ID="cbxIsZiphtml" runat="server" Text="压缩输出" />
                </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">模型状态:</td>
              <td bgcolor="#F4FBFF">
                    <asp:RadioButtonList ID="rblEnable" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="0" Selected="True">禁用模型 </asp:ListItem>
                        <asp:ListItem Value="1">启用模型 </asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">评论状态:</td>
              <td bgcolor="#F4FBFF">
                  <asp:CheckBox ID="cbxMsgLocked" runat="server" Text="启用审核" />
                  <asp:CheckBox ID="cbxImageLocked" runat="server" Text="启用图片" />
                </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">评论风格:</td>
              <td bgcolor="#F4FBFF">
                    <asp:RadioButtonList ID="rblMsgStyle" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="0" Selected="True">默认风格 </asp:ListItem>
                        <asp:ListItem Value="1">简易风格 </asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            

            <tr>
              <td bgcolor="#F4FBFF">&nbsp;</td>
              <td bgcolor="#F4FBFF">
                <asp:Button BackColor="#F4FBFF" CssClass="bt" ID="btnUpdate" runat="server" Text=" 添加 " onclick="btnAdd_Click" />
              </td>
            </tr>
          </table>
          
          
</div>
<span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</form>
</div>

</body>
</html>

